<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<link rel="stylesheet" href="style.css">
	</head>
<title>Search by User</title>
</head>

<body>

<p><b>Feature Name:</b> Search by User<br><b>Feature URL:</b>&nbsp; /api/links/search_user.php<br>
<b>Parameters: </b><br>&nbsp;&nbsp;&nbsp;
verbose<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Activates verbose mode, Integer(0-disabled, 1-enabled), Optional (0 by 
default)<br>&nbsp;&nbsp;&nbsp; user<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Username, string, Not Optional<br>&nbsp;&nbsp;&nbsp; xml<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Defines if returns xml, Integer(0-disabled, 1-enabled), Optional (0 by 
default)
<br><br><b>Examples:</b><br>
/api/links/search_user.php?&amp;user=teste<br>
/api/links/search_user.php?&amp;user=teste&amp;xml=1</p>
<b>Output :</b><br>
{"Result":{"SearchUser":[{"title":"Gmail","linkURL":"www.gmail.com","description":"Servidor de email do google","hits":"102","shared":"0","tags":["servidor","email","google","gmail"]}]}}
<br>{"Result":{"SearchUser":"parameterError"}}<br>
{"Result":{"SearchUser":"dbError"}}
<br>
</body>

</html>
<xmp>
<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
  <SearchUser>
    <Link>
      <Title>Gmail</Title>
      <LinkURL>www.gmail.com</LinkURL>
      <Description>Servidor de email do google</Description>
      <Hits>104</Hits>
      <Shared_Link>0</Shared_Link>
      <Tags/>
    </Link>
  </SearchUser>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
<SearchUser>
<Error>
parameterError
</Error>
</SearchUser>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
<SearchUser>
<Error>
dbError
</Error>
</SearchUser>
</Result>